package com.mthebron.mthapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Lunch extends Activity{
	
	private OnClickListener onelateopenClickListener = new OnClickListener() {
		public void onClick(View v) {
			// start Activity ___ when clicked
			Intent startCal = new Intent(Lunch.this, One_hour_early_dismissal.class);
			Lunch.this.startActivity(startCal);
		}
	};
	
	private OnClickListener reglunchClickListener = new OnClickListener() {
		public void onClick(View v) {
			// start Activity ___ when clicked
			Intent startCal = new Intent(Lunch.this, Regular_schedule.class);
			Lunch.this.startActivity(startCal);
		}
	};
	
	private OnClickListener twolateopenClickListener = new OnClickListener() {
		public void onClick(View v) {
			// start Activity ___ when clicked
			Intent startCal = new Intent(Lunch.this, Two_hour_late_opening.class);
			Lunch.this.startActivity(startCal);
		}
	};
	
	private OnClickListener threeearlydisClickListener = new OnClickListener() {
		public void onClick(View v) {
			// start Activity ___ when clicked
			Intent startCal = new Intent(Lunch.this, Three_hour_early_dismissal.class);
			Lunch.this.startActivity(startCal);
		}
	};
	
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.lunchmain);
		
		Button reglunchButton = (Button) findViewById(R.id.RegLunchButton);
        reglunchButton.setOnClickListener(reglunchClickListener);
        Button onelateopenButton = (Button) findViewById(R.id.OneLateOpenButton);
        onelateopenButton.setOnClickListener(onelateopenClickListener);
        Button twolateopenButton = (Button) findViewById(R.id.TwoLateOpenButton);
        twolateopenButton.setOnClickListener(twolateopenClickListener);
        Button threeearlydisButton = (Button) findViewById(R.id.ThreeEarlyDisButton);
        threeearlydisButton.setOnClickListener(threeearlydisClickListener);
	}
		
}
